{% extends "twitterSentiment/base.html" %}

{% block content %}
<h3>{{ message }}</h3>
<form action="{% url 'trainingDS'%}" method="post">
    {% csrf_token %}
    {% if form.errors %}
    {% for field in form %}
        {% for error in field.errors %}
            <div class="alert alert-error">
                <strong>{{ error|escape }}</strong>
            </div>
        {% endfor %}
    {% endfor %}
    {% for error in form.non_field_errors %}
        <div class="alert alert-error">
            <strong>{{ error|escape }}</strong>
        </div>
    {% endfor %}
{% endif %}
    {{  form.as_table }}
    <button type="submit" class="btn btn-success">Train Tweet {{ tweet_id }}</button>
    &nbsp;&nbsp; <button type="button" class="btn btn-default" onclick="window.location.reload()">Skip</button>
    <input type="hidden" name="tweet_id" value="{{ tweet_id }}"/>

</form>
{% endblock %}